﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowAdd.aspx.cs" Inherits="Agency_ShowAdd" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>添加公示信息</title>
    <link href="../styles/css.css" rel="stylesheet" type="text/css">
  <script language="javascript" src="../common/javascript/calendar.js" type="text/javascript"></script>
    <script language="vbscript" src="../Common/yz.vbs"></script>
    <script language="JavaScript" type="text/javascript">
        function addFile() {
            var str = '<INPUT type="file" size="50" NAME="File">'
            document.getElementById('MyFile').insertAdjacentHTML("beforeEnd", str)
        }
    </script>
    <script  language="javascript" >
        function selectall1() {

            var a = document.getElementsByName("rdoShowSort");

            for (var i = 0; i < a.length; i++) {
                if (a.item(i).checked == true) {
                    if (a.item(i).value == "3") {
                       
                        qi1.style.display = 'block'; qi2.style.display = 'block';
                    }
                    else {
                        qi1.style.display = 'none'; qi2.style.display = 'none';
                    }


                    break;

                }
            }
        }
   </script>

</head>
<body>
    <form id="form1" method="post" runat="server" enctype="multipart/form-data">
        <div>
            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"　>
                <tr>
                    <td width="4">
                        <img src="../images/intro_left.gif" width="4" height="34"></td>
                    <td class="intro_wordbg">
                        添加公示信息</td>
                    <td background="../images/intro_bg.gif">
                        <img src="../images/intro_right.jpg" width="118" height="34"></td>
                </tr>
            </table>
            <table id="tabData" width="98%" border="0" align="center" cellpadding="2" cellspacing="1"
                class="table_table2">
                <tr>
                    <td class="table_td3">
                        公示标题：</td>
                    <td class="table_td2">
                        <asp:TextBox ID="txtShowName" runat="server" NotNull="标题" InvertedComma="标题"
                            Width="453px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="table_td3">
                        页面标题：</td>
                    <td class="table_td2">
                        <asp:TextBox ID="PageShowName" runat="server" NotNull="页面标题" InvertedComma="页面标题"
                            Width="453px"></asp:TextBox>（最好在5个子一下，否则影响美观）</td>
                </tr>
                <tr>
                    <td class="table_td3">
                        公示类型</td>
                    <td class="table_td2">
                        <asp:RadioButtonList ID="rdoShowSort" runat="server" RepeatDirection="Horizontal" onclick="javascript:selectall1();"   
                            Width="450px">
                            <asp:ListItem Text="产品公示" Value="0"></asp:ListItem>
                            <asp:ListItem Text="开标公示" Value="1" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="挂网公示" Value="2"></asp:ListItem>
                            <asp:ListItem Text="其他公示" Value="3" ></asp:ListItem>
                            
                       <%--     <asp:ListItem Text="竞价公示" Value="3"></asp:ListItem>--%>
                        </asp:RadioButtonList>&nbsp;
                    </td>
                </tr>
                 
                  <tr id="qi1">
                    <td class="table_td3">
                        选择文件：</td>
                    <td class="table_td2">
                           <p id="MyFile">
                <input type="file" size="50" name="File" style="height: 25px"/></p><asp:Label 
                            ID="strStatus" runat="server" BorderColor="White" BorderStyle="None" 
                            Font-Bold="True" Font-Names="宋体" Font-Size="9pt" Height="1px" Width="500px"></asp:Label>
                      </td>
                </tr>
                <tr id="qi2">
                    <td class="table_td3">
                        排序列：</td>
                    <td class="table_td2">
                        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        （ 上传文件的列）</td>
                </tr>
                 

                <tr>
                    <td class="table_td3">
                        发布时间：</td>
                    <td class="table_td2">
                        <asp:TextBox ID="txtcontractEndDate" runat="server" Width="183px" onclick="javascript:fPopCalendar(this,this);"  dataType="Date" format="ymd" require="true" DateTimeOnly="发布时间" NotNull="发布时间"></asp:TextBox><span
                            style="color: #ff0000">(＊请点击文本框选时间)</span></td>
                </tr>
                <tr>
                    <td class="table_td3">
                        <asp:Button ID="Button1" CssClass="button_bg" runat="server" OnClick="Button1_Click"
                            Text="保  存" OnClientClick="javascript:return CheckForm();" Width="60px" />
                    </td>
                    <td class="table_td3">
                        <input id="Button4" class="button_bg" name="sdf" type="button" value="关  闭" onclick="window.close()" style="width: 60px" /></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
